home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16155 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: sage.cgd.ucar.edu!jadams
  2. From: jadams@sage.cgd.ucar.edu (James Adams)
  3. Newsgroups: comp.sys.sgi.apps,comp.lang.c++
  4. Subject: SGI's C++ compiler and the boolean type
  5. Date: 9 Apr 1996 20:01:11 GMT
  6. Organization: National Center for Atmospheric Research
  7. Distribution: world
  8. Message-ID: <4kefm7$oao@ncar.ucar.edu>
  9. Reply-To: jadams@sage.cgd.ucar.edu
  10. NNTP-Posting-Host: sage.cgd.ucar.edu
  11.  
  12. Hello,
  13.  
  14.     I have begun using SGI's C++ compiler (Translator 4.0) since
  15. I want to use their CASEVision debugger.  I have previously used g++
  16. to do my compilation, and it correctly interpreted the "bool" type
  17. without any problems.  However now that I am using SGI's compiler I
  18. get all kinds of compiler errors whenever it encounters "bool", "true",
  19. or "false" in my codes.  The only workaround I've been able to come up
  20. with is to include the following lines in my header file:
  21.  
  22. typedef int     bool;
  23. #define true    1
  24. #define false   0
  25.  
  26.     Is there something that I'm missing here, such as compiler
  27. flags or include files ?  Is this a case of SGI dropping the ball by
  28. not including support for a standard type ? 
  29.  
  30.     The command I'm using to compile with is
  31.  
  32.  CC -g -o plusfilt main.cpp frame.cpp buffer.cpp options.cpp list.cpp -lm
  33.  
  34.  
  35.     Thanks for any suggestions or insight !
  36.  
  37.  
  38. -James
  39. -- 
  40. ---------------------------------------------------------------------------
  41. James Adams                               Email: jadams@ucar.edu
  42. National Center for Atmospheric Research  Phone: (303) 497-1356
  43. Boulder, Colorado                         Fax:   (303) 497-1348
  44.  
  45.     WWW:  http://www.cgd.ucar.edu/ccr/jadams/home.html
  46.